﻿using System;

namespace Raven
{
    public static class Logger
    {
        private static Action<object> _log;
        private static Action<object> _logWarning;
        private static Action<object> _logError;

        public static void Set(Action<object> log, Action<object> logWarning, Action<object> logError)
        {
            _log = log;
            _logWarning = logWarning;
            _logError = logError;
        }

        public static void Log(object message)
        {
            _log?.Invoke(message);
        }

        public static void LogWarning(object message)
        {
            _logWarning?.Invoke(message);
        }

        public static void LogError(object message)
        {
            _logError?.Invoke(message);
        }
    }
}